package com.kly.user.db.dao.impl;

import com.fqgj.common.base.AbstractBaseMapper;
import com.google.common.collect.Maps;
import com.kly.user.db.dao.CusomExtDao;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;
import java.util.Objects;

/**
 * @author linqu
 */
@Repository
public class CustomerExtDaoImpl extends AbstractBaseMapper implements CusomExtDao {

    @Override
    public List<Map<String, Object>> customQuery(String sql, Map<String, Object> params) {
        if (Objects.isNull(params)) {
            params = Maps.newHashMap();
        }
        params.put("sql", sql);
        return this.getSqlSession().selectList(this.getStatement("customQuery"), sql);
    }
}